﻿using System.Windows.Forms;

namespace Dogshow.Win.Helpers
{
    public static class BindingSourceExtensions
    {
         public static void MoveTo(this BindingSource bs, object to)
         {
             var ix = bs.IndexOf(to);
             if (ix > -1)
             {
                 bs.Position = ix;
             }
         }
    }
}